package com.example.distributesession.config;

import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ServletConfig {

    @Bean
    public ServletRegistrationBean loginServlet() {
        ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(new LoginServlet());
        servletRegistrationBean.addUrlMappings("/loginServlet");
        return servletRegistrationBean;
    }

}
